package com.yx.pc.api.service;

import com.yx.common.utils.R;
import com.yx.modules.api.entity.TbAuthorApply;
import com.yx.system.entity.SysUser;

import java.io.UnsupportedEncodingException;
import java.util.List;
import java.util.Map;

/**
 * 普通作者申请
 * 
 * @author luo
 * @email www.baidu.com
 * @date 2018-07-02 10:26:26
 */
public interface PcTbAuthorApplyService {
	
	TbAuthorApply queryObject(Integer id);
	
	List<TbAuthorApply> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(TbAuthorApply authorApply);
	
	void update(TbAuthorApply authorApply);
	
	void delete(Integer id);
	
	void deleteBatch(Integer[] ids);

    R passApply(TbAuthorApply authorApply, SysUser sysUser1) throws UnsupportedEncodingException;

	R refuseApply(TbAuthorApply authorApply, SysUser sysUser1) throws UnsupportedEncodingException;

    List<TbAuthorApply> findAllByUser(Integer userId);

    List<TbAuthorApply> findAllBySysUser(Integer userId);
}
